package com.lxhll.personnel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxhll.personnel.entity.Employee;
import com.lxhll.personnel.entity.EmployeeRole;
import com.lxhll.personnel.entity.Role;

import java.util.List;

/**
 * (EmployeeRole)表服务接口
 *
 * @author makejava
 * @since 2021-07-25 16:18:15
 */
public interface EmployeeRoleService extends IService<EmployeeRole> {
    /**
     * 根据员工ID，查询拥有的所有角色
     * @param employeeId
     * @return
     */
    public List<Role> getRoleByEmployeeId(Integer  employeeId);



    /**
     * 根据角色ID，查询分配到的所有员工
     * @param roleId
     * @return
     */
    public List<Employee>  getEmployeeByRoleId(Integer roleId);

}
